<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>编辑文章</title>
		<link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" href="./css/reset.css">
		<link rel="stylesheet" href="./css/iconfont.css">
		<link rel="stylesheet" href="./css/main.css">
		<script src="./libs/jquery/jquery.min.js"></script>
		<script src="./libs/bootstrap/js/bootstrap.min.js"></script>
		<script src="./libs/art-template/template-web.js" type="text/javascript" charset="utf-8"></script>
		<script src="libs/tinymce_5.5.1/tinymce.min.js" type="text/javascript" charset="utf-8"></script>
		<!-- layUI -->
		<link rel="stylesheet" href="./libs/layui/css/modules/layer/default/layer.css">
		<link rel="stylesheet" href="./libs/layui/css/layui.css" media="all">
		<script src="./libs/layui/lay/modules/layer.js"></script>
		<script src="./libs/layui/layui.js"></script>
		
		<script src="./js/jqheader.js" type="text/javascript" charset="utf-8"></script>
		<!-- 由于功能一致，这里使用add页面的js -->
		<script src="js/article_add.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/article_edit.js" type="text/javascript" charset="utf-8"></script>
		
	</head>
	<!-- 分类模板 -->
	<script type="text/html" id='type'>
	{{each data v}}
	<option value='{{v.id}}'>{{v.name}}</option>
	{{/each}}
	</script>
	
	
	<body>
		<div class="container-fluid">
			<div class="common_title">
				文章编辑
			</div>
			<div class="container-fluid common_con">
				<form class="form-horizontal article_form" id="form">
					<div class="form-group">
						<label for="inputTitle" class="col-sm-2 control-label">文章标题：</label>
						<div class="col-sm-10">
							<input type="text" name="title" required class="form-control title" id="inputTitle"
								placeholder="文章标题文字">
						</div>
					</div>
					<div class="form-group">
						<label for="inputCover" class="col-sm-2 control-label">文章封面：</label>
						<div class="col-sm-10">
							<img id="coverimg" src="./images/2.jpg" class="article_cover">
							<input name="cover" type="file" id="inputCover">
						</div>
					</div>
					<div class="form-group">
						<label for="inputCategory" class="col-sm-2 control-label">文章类别：</label>
						<div class="col-sm-4">
							<select id="category" class="form-control category" name="categoryId">
								<!-- <option value='100'>100</option>
								<option value='101'>101</option>
								<option value='{{v.id}}'>{{v.name}}</option>
								<option value='{{v.id}}'>{{v.name}}</option>
								<option value='{{v.id}}'>{{v.name}}</option>
								<option value='{{v.id}}'>{{v.name}}</option> -->
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">发布时间：</label>
						<div class="col-sm-4">
							<input id="articleDate" name='date' class="jeinput form-control title" type="text"
								placeholder="请选择发布日期" readonly>
						</div>
					</div>
					<div class="form-group">
						<label for="inputEmail3" class="col-sm-2 control-label">文章内容：</label>
						<div class="col-sm-10">
							<!-- 富文本编辑区域 -->
							<textarea id="articleContent"></textarea>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="button" class="btn btn-success btn-edit">发布</button>
							<button type="button" class="btn btn-default btn-draft">存为草稿</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		
		
		
	</body>
</html>
